/*
** my_revstr.c for  in /home/georgi_v/rendu/Piscine-C-Jour_06
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Thu Oct  3 23:43:39 2013 georgi_v
** Last update Fri Dec  6 19:42:12 2013 georgi_v
*/

#include "my.h"

char	*my_revstr(char *str)
{
  char	*begining;
  int	last;
  char	*last_point;
  char	tmp;

  begining = str;
  last = my_strlen(str);
  last_point = str + last - 1;
  while (str < last_point)
    {
      tmp = *str;
      *str = *last_point;
      *last_point = tmp;
      str = str + 1;
      last_point = last_point - 1;
    }
  return (begining);
}
